package com.mall.mapper;

import com.mall.po.Brand;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 品牌表 Mapper 接口
 * </p>
 *
 * @author itlxc
 * @since 2024-04-18
 */
@Mapper
public interface BrandMapper extends BaseMapper<Brand> {

    /**
     * 品牌状态统计
     * @param params
     * @return
     */
    @Select("select count(*) from brand where status = #{status}")
    Integer countBrand(Integer params);
}
